package com.mcxx.modules.miniSalvation.special.service.write;

import com.mcxx.modules.miniSalvation.special.dao.write.MemberSpecialSignWriteDao;
import com.mcxx.modules.miniSalvation.special.dao.write.SpecialSignWriteDao;
import com.mcxx.modules.miniSalvation.special.entity.MemberSpecialSignEntity;
import com.mcxx.modules.miniSalvation.special.entity.SpecialSignEntity;
import com.yinhai.ta404.core.service.BaseService;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@TaTransactional
public class MemberSpecialSignWriteService extends BaseService {
    @Autowired
    private MemberSpecialSignWriteDao memberSpecialSignWriteDao;


    public int insertIgnoreNull(MemberSpecialSignEntity memberSpecialSignEntity) {
        return memberSpecialSignWriteDao.insertIgnoreNull(memberSpecialSignEntity);
    }

    public int updateIgnoreNull(MemberSpecialSignEntity memberSpecialSignEntity) {
        return memberSpecialSignWriteDao.updateIgnoreNull(memberSpecialSignEntity);
    }

    public int deleteByIdcard(String idcard,String status) {
        return memberSpecialSignWriteDao.deleteByIdcard(idcard,status);
    }

    public int updateMemberStatus( MemberSpecialSignEntity memberSpecialSignEntity, String newStatus) {
        return memberSpecialSignWriteDao.updateMemberStatus(memberSpecialSignEntity,newStatus);
    }

    public int deleteBySpecialValue(String specialValue) {
        return memberSpecialSignWriteDao.deleteBySpecialValue(specialValue);
    }
}
